//
//  MNDLinkerViewController.m
//  miniwangdai2
//
//  Created by Steven.Yung on 2017/3/23.
//  Copyright © 2017年 谭谭伟. All rights reserved.
//

#import "MNDLinkerViewController.h"

@interface MNDLinkerViewController ()

@property (nonatomic, strong) UIWebView *webView;

@end

@implementation MNDLinkerViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    NSURL *url = [NSURL URLWithString:self.linkUrl];
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    
    self.webView = [[UIWebView alloc] initWithFrame:self.view.bounds];
    
    [self.view addSubview:self.webView];
    
    [self.webView loadRequest:request];
    
    self.webView.scalesPageToFit = YES;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void) viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    
    [self.navigationController.navigationBar setHidden:NO];
}

- (void)viewWillDisappear:(BOOL)animated {
    
    [super viewWillDisappear:animated];
    
    [self.navigationController.navigationBar setHidden:YES];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
